<?php
/**
* @author Bimal Poudel
* @package Smarty Framework
* @support http://www.odesk.com/users/~~dd91d11caed0cdce
* @contact http://www.sanjaal.com
* @company Sanjaal Corps
*/

require_once('class.cropnail.inc.php');

$original_image='originals/branch.jpg';

# List of desired sizes
$sizes = array(
	array(100, 200),
	array(100, 300),
	array(200, 200),
	array(300, 200),
	array(600, 100),
);

$crop_pattern = '';
foreach($sizes as $s => $size)
{
	$cropnail = new cropnail($size[0], $size[1]);
	$cropnail->resize($original_image, "cropnails/multisized-cropnail-{$s}.jpg", $crop_pattern);
}

# See reports
header('Location: examples/multiple.php');
?>